package com.roadmap.entities.ext;

import java.util.Date;

import com.roadmap.entities.LifeTask;

/** the class extends LifeTask and include more information */
public class TaskExt extends LifeTask {
	private String goalName; // the name of plan which the task may belong to
	private int progress; // task progress
	private int execCount; // number of executions
	private int tatalExecTime; // hours of executing the task
	private Date latestExecDate; // the latest execution record of the task
	private String symptom;
	
	public TaskExt(){
	}

	public TaskExt(LifeTask task){
		setTask(task);
	}
	
	public void setTask(LifeTask task) {
		this.copyValues(task);
	}
	
	public LifeTask getTask() {
		LifeTask task = new LifeTask();
		task.copyValues(this);
		return task;
	}

	public String getGoalName() {
		return goalName;
	}

	public void setGoalName(String planName) {
		this.goalName = planName;
	}

	public int getProgress() {
		return progress;
	}

	public void setProgress(int progress) {
		this.progress = progress;
	}

	public Date getLatestExecDate() {
		return latestExecDate;
	}

	public void setLatestExecDate(Date latestExecDate) {
		this.latestExecDate = latestExecDate;
	}

	public int getExecCount() {
		return execCount;
	}

	public void setExecCount(int execCount) {
		this.execCount = execCount;
	}

	public int getTatalExecTime() {
		return tatalExecTime;
	}

	public void setTatalExecTime(int tatalExecTime) {
		this.tatalExecTime = tatalExecTime;
	}

	public String getSymptom() {
		return symptom;
	}

	public void setSymptom(String symptom) {
		this.symptom = symptom;
	}

}
